import request from '@/utils/request'

export function getOne(params) {
  return request({
    url: '/api/statistics',
    method: 'get',
    params
  })
}

export function getAll(params) {
  return request({
    url: '/api/statistics/raw',
    method: 'get',
    params
  })
}

export function getHistory(params) {
  return request({
    url: '/api/statistics/history',
    method: 'get',
    params
  })
}
